<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:substituteby="navtempStore::docHead(#{storecenter.name},'首页')">
</head>
<body>
<script type="text/javascript" th:substituteby="demo/store/course.js::js"></script>
<style type="text/css">
    html {
        height: 100%
    }

    body {
        height: 100%;
        margin: 0px;
        padding: 0px
    }

    #container {
        height: 750px;
    }

    .myRow {
        margin: 0 auto;
        border-bottom: 1px solid #CCCCCC;
        padding: .5em;
    }
</style>
<nav th:replace="navtempStore::nav(#{storecenter.name})"></nav>
<div class="container" style="margin-top: 5em;">
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <nav class="navbar navbar-default">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                data-target="#bs-example-navbar-collapse-2" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">小班课管理：</a>
                    </div>
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                        <a th:href="@{/demo/store/addcourse}" class="btn btn-primary navbar-btn">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                            添加小班课
                        </a>

                        <form class="navbar-form navbar-right" role="search" method="get"
                              action="/system/authorization/perms/query">
                            <div class="input-group input-append date form_datetime">
                                <input name="description" type="date" class="form-control" placeholder="开始时间"/>
                            </div>
                            <div class="input-group input-append date form_datetime">
                                <input name="description" type="date" class="form-control" placeholder="结束时间"/>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="查询" id="dataType" name="dataType"
                                       value="" type="text"/>
                                <input name="page.pageSize" id="pageSize" value="20" type="hidden"/>
                                <input name="page.currentPage" id="currentPage" value="1" type="hidden"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>
                </div>
            </nav>
            <div class="modal fade" id="myModal-del" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel-del" aria-hidden="true">
                <div class="modal-dialog" style="width: 400px;">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                ×
                            </button>
                            <h4 class="modal-title" id="myModalLabel-del">
                                删除小班课
                            </h4>
                        </div>
                        <div class="modal-body">
                            <p>
                                确定要删除小班课<span id="delUserName"></span>吗？
                            </p>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                            </button>
                            <button type="button" class="btn btn-primary" id="doDel">
                                确定
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <ul id="myTab" class="nav nav-tabs">
                <li class="active">
                    <a href="#home" data-toggle="tab">
                        未开课
                    </a>
                </li>
                <li><a href="#tab2" data-toggle="tab">已开课</a></li>
                <li><a href="#tab3" data-toggle="tab">开课失败</a></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade in active" id="home">
                    <div class="row" style="margin-top: .5em;">
                        <div class="col-sm-12 col-md-12">
                            <div class="table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>开班时间</th>
                                        <th>开课时间</th>
                                        <th>课时数量</th>
                                        <th>价格</th>
                                        <th>最少开课人数</th>
                                        <th>最多上课人数</th>
                                        <th>报名人数</th>
                                        <th>教室</th>
                                        <th>最晚报名时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>肩背打开小班课</td>
                                        <td>2017-06-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>2017-06-05</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/addcourse'">
                                                <span class="glyphicon glyphicon-edit" aria-hidden="false"></span>
                                            </button>
                                            &nbsp;&nbsp;
                                            <button type="button" class="btn btn-xs btn-danger"
                                                    onclick="confirmDelUser(4)">
                                                <span class="glyphicon glyphicon-remove" aria-hidden="false"></span>
                                            </button>
                                            &nbsp;&nbsp;
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/enrollCourse'">
                                                报名管理
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>核心提升小班课</td>
                                        <td>2017-07-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>2017-07-05</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/addcourse'">
                                                <span class="glyphicon glyphicon-edit" aria-hidden="false"></span>
                                            </button>
                                            &nbsp;&nbsp;
                                            <button type="button" class="btn btn-xs btn-danger"
                                                    onclick="confirmDelUser(4)">
                                                <span class="glyphicon glyphicon-remove" aria-hidden="false"></span>
                                            </button>
                                            &nbsp;&nbsp;
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/enrollCourse'">
                                                报名管理
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade in" id="tab2">
                    <div class="row" style="margin-top: .5em;">
                        <div class="col-sm-12 col-md-12">
                            <div class="table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>开班时间</th>
                                        <th>开课时间</th>
                                        <th>课时数量</th>
                                        <th>价格</th>
                                        <th>最少开课人数</th>
                                        <th>最多上课人数</th>
                                        <th>报名人数</th>
                                        <th>教室</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>肩背打开小班课</td>
                                        <td>2017-06-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/courseVIP'">
                                                查看报名会员
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>核心提升小班课</td>
                                        <td>2017-07-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/courseVIP'">
                                                查看报名会员
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade in" id="tab3">
                    <div class="row" style="margin-top: .5em;">
                        <div class="col-sm-12 col-md-12">
                            <div class="table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>开班时间</th>
                                        <th>开课时间</th>
                                        <th>课时数量</th>
                                        <th>价格</th>
                                        <th>最少开课人数</th>
                                        <th>最多上课人数</th>
                                        <th>报名人数</th>
                                        <th>教室</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>肩背打开小班课</td>
                                        <td>2017-06-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/courseRefund'">
                                                查看退费情况
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>核心提升小班课</td>
                                        <td>2017-07-06</td>
                                        <td>13:00</td>
                                        <td>10</td>
                                        <td>1000</td>
                                        <td>5</td>
                                        <td>8</td>
                                        <td>2</td>
                                        <td>教室1</td>
                                        <td>
                                            <button type="button" class="btn btn-xs btn-info"
                                                    onclick="window.location.href='/demo/store/courseRefund'">
                                                查看退费情况
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
